package com.xiao.controller;

import com.xiao.domain.ResponseResult;
import com.xiao.service.BlogLinkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/link")
@Api(tags = "友链控制层")
public class BlogLinkController {
    @Autowired
    private BlogLinkService blogLinkService;

    @GetMapping("/getAllLink")
    @ApiOperation("获取所有审核通过的友链")
    public ResponseResult getAllLink(){
        ResponseResult responseResult = blogLinkService.getAllLink();
        return responseResult;
    }

}